package net.maku.member.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.AllArgsConstructor;
import net.maku.framework.mybatis.service.impl.BaseServiceImpl;
import net.maku.member.dao.MemberUserTransferDao;
import net.maku.member.entity.MemberUserTransferEntity;
import net.maku.member.service.MemberUserTransferService;
import org.springframework.stereotype.Service;

/**
 * @Author: qr
 * @Date: 2025/3/16 19:31
 * @Version 1.0
 */
@Service
@AllArgsConstructor
public class MemberUserTransferServiceImpl extends BaseServiceImpl<MemberUserTransferDao, MemberUserTransferEntity> implements MemberUserTransferService {

    @Override
    public IPage<MemberUserTransferEntity> getMemberUserTransfer(Page<MemberUserTransferEntity> page) {
        LambdaQueryWrapper<MemberUserTransferEntity> transferQuery = new LambdaQueryWrapper<MemberUserTransferEntity>().eq(MemberUserTransferEntity::getAuditStatus, 0);
        dataScopeWrapper(transferQuery);
        return this.baseMapper.selectPage(page, transferQuery);
    }
}
